package parser;

import lexer.Position;

public class ParseException extends RuntimeException {
	  private static final long serialVersionUID = -2607449783873444580L;
	  private final Position position;
	  
	  public ParseException(Position position) {
	    this.position = position;
	  }

	  public ParseException(String arg0, Position position) {
	    super(arg0);
	    this.position = position;
	  }

	  public ParseException(Throwable arg0, Position position) {
	    super(arg0);
	    this.position = position;
	  }

	  public ParseException(String arg0, Throwable arg1, Position position) {
	    super(arg0, arg1);
	    this.position = position;
	  }
	  
	  public Position getPosition() {
	    return this.position;
	  }

}
